﻿using System;
using System.Collections.Generic;
using KBEngine.Setting;

namespace KBEngineTool
{
    public enum IndexType { UNIQUE, INDEX }
    public enum Flags { BASE = 1, BASE_AND_CLIENT = 2, CELL_PRIVATE = 4, CELL_PUBLIC = 8, CELL_PUBLIC_AND_OWN = 16, ALL_CLIENTS = 32, OWN_CLIENT = 64, OTHER_CLIENTS = 128 }
    public enum ClassType { None, Interfaces, Components }
    internal class EntitySetting
    {
        /// <summary>
        /// 实体名称
        /// </summary>
        public string name = string.Empty;

        /// <summary>
        /// 是否已在实体清单中存在
        /// </summary>
        public bool register = false;

        /// <summary>
        /// 是否存在Client部分
        /// </summary>
        public bool hasClient = false;

        /// <summary>
        /// 实体类型(接口、组件)
        /// </summary>
        public ClassType entityType = ClassType.None;

        /// <summary>
        /// 对象配置
        /// </summary>
        public Entity entity;
    }
}
